//
//  JsKeyChainItem.h
//  JsUtilitySdk
//
//  Created by Gikki Ares on 2023/4/26.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface JsKeyChainItemA : NSObject
//保存的数据
@property (nonatomic,strong) NSData * data;
//@property (nonatomic,strong) NSString * value;
//accessGroup,作为查询范围的限定.
@property (nonatomic,strong) NSString  * accessGroup;
//服务类型,一般作为键.
@property (nonatomic,strong) NSString  * service;

- (instancetype)initWithData:(NSData *)data servie:(NSString *)service accessGroup:( NSString * __nullable)accessGroup;
- (instancetype)initWithString:(NSString *)string servie:(NSString *)service accessGroup:( NSString * __nullable)accessGroup;
- (instancetype)initWithDictionary:(NSDictionary *)dic;

- (NSString *)toString;
- (NSString *)stringData;

@end

NS_ASSUME_NONNULL_END
